<?php

namespace Guestbook;

/**
 * mysql数据库连接类
 */
class GuestbookMysqlModel extends \Mysql\MysqlBase
{
    /**
     * 表名
     *
     * @var string
     */
    protected $_tableName = 'guestbook';

    /**
     * 表的主键名
     *
     * @var string
     */
    protected $_primaryKey = "guestbook_id";

    /**
     * 类实例
     *
     * @var \Guestbook\GuestbookMysqlModel
     */
    private static $_instance = null;

    /**
     * 获取类实例
     *
     * @return \Guestbook\GuestbookMysqlModel
     */
    public static function getInstance()
    {
        if (!(self::$_instance instanceof self)) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

}
